MD Verb Extensions

Md verb extensions are called when an @verb(arg1, arg2) is found in a markdown source file.

@classMethods

  • @classMethods(ClassName, visibility)
    • @arg ClassName: The class name. You may specify namespace as well.
    • @arg visibility: * for any visibility, or public, or private, or protected
      Displays all methods of a class with the given visibility.

@classMethods example

@‌classMethods(Tlf\Scrawl\Utility\Php, public) displays:

  • Php::classesFromDir($classDir): Get all classes in a directory
    • @param: $classDir A directory to search
    • @return: array ['class'=>$class, 'interfaces'=>['interface1','interface2']]
  • Php::getClassFromFile($file): Get a fully qualified class name from a file
    • @param: $file a file path
    • @return: a class name
  • Php::getInterfacesFromClass($class):